package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffFormHorizontalTargetPeriodDto
 * @使用场景
 */
@Data
public class BffFormHorizontalTargetPeriodDto implements Serializable {

    /**
     * 被评对象目标周期ID
     */
    @ApiModelProperty("被评对象目标周期ID")
    private String evaObjTargetCycleId;

    /**
     * 周期ID
     */
    @ApiModelProperty("周期ID")
    private String cycleId;

    /**
     * 是否父周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否父周期")
    private String isParentCycle;

    /**
     * 是否子周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否子周期")
    private String isSubCycle;

    /**
     * 是否中期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否中期")
    private String isMetaphase;

    /**
     * 周期名称
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 周期类型名称
     */
    @ApiModelProperty("周期类型名称")
    private String cycleTypeName;

    /**
     * 周期类型实例简称
     */
    @ApiModelProperty("周期类型实例简称")
    private String cycleNumberShortName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffFormHorizontalTargetPeriodDto that = (BffFormHorizontalTargetPeriodDto) o;
        return evaObjTargetCycleId == that.evaObjTargetCycleId && cycleId == that.cycleId && isParentCycle == that.isParentCycle && isSubCycle == that.isSubCycle && isMetaphase == that.isMetaphase && cycleStandardName == that.cycleStandardName && cycleTypeName == that.cycleTypeName && cycleNumberShortName == that.cycleNumberShortName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), evaObjTargetCycleId, cycleId, isParentCycle, isSubCycle, isMetaphase, cycleStandardName, cycleTypeName, cycleNumberShortName);
    }


}
   